﻿using Akka.Actor;
using Akka.Configuration;
using Dapper.Sharding.CAP;

namespace TestWeb2
{
    public class MyCap
    {
        public static ClientCap Cap { get; }

        static MyCap()
        {
            var configIni = File.ReadAllText(AppDomain.CurrentDomain.BaseDirectory + "Config.ini");
            var config = ConfigurationFactory.ParseString(configIni);
            var system = ActorSystem.Create("clientSys2", config); //root
            Cap = new ClientCap(system, "c");
        }
    }
}
